app chooser: Avoid duplicates
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Sep 2015 19:14:00 +0000 (15:14 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Sep 2015 19:17:02 +0000 (15:17 -0400)
commit08e25b9ef7fee78b97dae4831323d950bdb10be9
tree4df415644eacc5051673e4614e3f03cf960f6d03
parent5bb9c1891ced2699bfc9d92acd8adf7b6167de26
app chooser: Avoid duplicates

At the time we populate the model "initially" in constructed(),
it has already been filled and cleared a couple of times (we do
that every time one of the construct properties gets set). So
we can't assume that the model is empty, and have to clear it
first. Otherwise, we add duplicates to the list.

https://bugzilla.gnome.org/show_bug.cgi?id=748080
gtk/gtkappchooserwidget.c